package com.lzj.demo.design.visitor.visitor;

import com.lzj.demo.design.visitor.user.Student;
import com.lzj.demo.design.visitor.user.Teacher;

/**
 * 定义访问数据接口
 * */
public interface IVisitor {
    //访问学生信息
    void visit(Student student);
    void visit(Teacher teacher);
}
